package com.kazu.banned.service.impl;

import com.kazu.banned.entity.dao.Banned;
import com.kazu.banned.mapper.BannedMapper;
import com.kazu.banned.service.BannedService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 封禁名单 服务实现类
 * </p>
 *
 * @author kazu
 * @since 2023/02/19 10:11
 */
@Service
public class BannedServiceImpl extends ServiceImpl<BannedMapper, Banned> implements BannedService {
	
	@Autowired
	private BannedMapper bannedMapper;
	
	/**
	 * 查询所有数据非分页
	 *
	 * @return 所有数据
	 */
	@Override
	public List<Banned> getAll() {
		return bannedMapper.selectList(null);
	}
}
